import request from '@/utils/request'

// 查询租售合同管理列表
export function listRentalcontract(query) {
  return request({
    url: '/rentalcontract/rentalcontract/list',
    method: 'get',
    params: query
  })
}
//
// 查询租售合同管理详细
export function getRentalcontract(id) {
  return request({
    url: '/rentalcontract/rentalcontract/' + id,
    method: 'get'
  })
}

// 新增租售合同管理
export function addRentalcontract(data) {
  return request({
    url: '/rentalcontract/rentalcontract',
    method: 'post',
    data: data
  })
}

// 修改租售合同管理
export function updateRentalcontract(data) {
  return request({
    url: '/rentalcontract/rentalcontract',
    method: 'put',
    data: data
  })
}

// 删除租售合同管理
export function delRentalcontract(id) {
  return request({
    url: '/rentalcontract/rentalcontract/' + id,
    method: 'delete'
  })
}
